<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{if .TitleZh}}{{.TitleZh}}{{else}}异常登录提醒{{end}}</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: #f8fafb;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
        }

        /* 科技背景 */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 20% 50%, rgba(220, 53, 69, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(220, 53, 69, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(220, 53, 69, 0.02) 0%, transparent 50%);
            pointer-events: none;
        }

        .alert-container {
            background: white;
            border-radius: 24px;
            box-shadow:
                0 24px 48px rgba(220, 53, 69, 0.08),
                0 8px 16px rgba(0, 0, 0, 0.04);
            overflow: hidden;
            max-width: 480px;
            width: 100%;
            position: relative;
            border: 1px solid rgba(220, 53, 69, 0.1);
        }

        .header {
            padding: 48px 40px 32px;
            text-align: center;
            position: relative;
            background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
        }

        .logo {
            font-size: 32px;
            font-weight: 700;
            color: #dc3545;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .tagline {
            font-size: 14px;
            color: #6c757d;
            font-weight: 400;
        }

        .content {
            padding: 0 40px 48px;
        }

        .title {
            font-size: 28px;
            color: #dc3545;
            text-align: center;
            margin-bottom: 8px;
            font-weight: 600;
            letter-spacing: -0.3px;
        }

        .subtitle {
            font-size: 16px;
            color: #495057;
            text-align: center;
            margin-bottom: 32px;
            line-height: 1.5;
        }

        .alert-section {
            background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
            border: 2px solid #dc3545;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px;
            text-align: center;
        }

        .alert-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }

        .alert-title {
            font-size: 20px;
            color: #dc3545;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .alert-description {
            font-size: 14px;
            color: #6c757d;
            line-height: 1.6;
        }

        .login-info {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
        }

        .info-item {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            font-size: 14px;
        }

        .info-item:last-child {
            margin-bottom: 0;
        }

        .info-label {
            color: #6c757d;
            min-width: 80px;
            margin-right: 12px;
        }

        .info-value {
            color: #212529;
            font-weight: 500;
        }

        .security-notice {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
            border: 1px solid #ffc107;
            border-radius: 12px;
            padding: 20px;
            color: #856404;
            font-size: 13px;
            line-height: 1.6;
            position: relative;
        }

        .security-notice::before {
            content: '⚠️';
            font-size: 18px;
            margin-right: 8px;
        }

        .footer {
            background: #f8fafb;
            padding: 24px 40px;
            text-align: center;
            border-top: 1px solid #e9ecef;
        }

        .features-row {
            display: flex;
            justify-content: center;
            gap: 32px;
            margin-bottom: 20px;
        }

        .feature-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .feature-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
        }

        .feature-text {
            font-size: 12px;
            color: #6c757d;
            font-weight: 500;
        }

        .copyright {
            font-size: 12px;
            color: #adb5bd;
            font-weight: 400;
        }

        /* 响应式设计 */
        @media (max-width: 480px) {
            .alert-container {
                margin: 10px;
                border-radius: 20px;
            }

            .header {
                padding: 32px 24px 24px;
            }

            .content {
                padding: 0 24px 32px;
            }

            .alert-section {
                padding: 20px 16px;
            }

            .features-row {
                gap: 20px;
            }

            .footer {
                padding: 20px 24px;
            }
        }
    </style>
</head>
<body>
    <div class="alert-container">
        <div class="header">
            <div class="logo">GoPayHK</div>
            <div class="tagline">全球虚拟卡平台</div>
        </div>
        <div class="content">
            <h1 class="title">{{if .TitleZh}}{{.TitleZh}}{{else}}异常登录提醒{{end}}</h1>
            <p class="subtitle">{{if .GreetingZh}}{{.GreetingZh}}{{else}}检测到您的账户发生了异常登录{{end}}</p>
            
            <div class="alert-section">
                <div class="alert-icon">🚨</div>
                <div class="alert-title">安全警告</div>
                <div class="alert-description">您的账户在以下时间和地点发生了异常登录，请确认是否为本人操作。</div>
            </div>

            <div class="login-info">
                <div class="info-item">
                    <span class="info-label">IP地址：</span>
                    <span class="info-value">{{.IP}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">登录位置：</span>
                    <span class="info-value">{{.Location}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">登录时间：</span>
                    <span class="info-value">{{.Time}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">设备信息：</span>
                    <span class="info-value">{{.Device}}</span>
                </div>
            </div>

            <div class="security-notice">
                <strong>安全提醒：</strong>
                <span>{{if .WarningZh}}{{.WarningZh}}{{else}}如果这不是您的操作，请立即修改密码并联系客服。{{end}}</span>
            </div>
        </div>
        <div class="footer">
            <div class="features-row">
                <div class="feature-item">
                    <div class="feature-icon">🔒</div>
                    <div class="feature-text">账户安全</div>
                </div>
                <div class="feature-item">
                    <div class="feature-icon">🛡️</div>
                    <div class="feature-text">实时监控</div>
                </div>
                <div class="feature-item">
                    <div class="feature-icon">📱</div>
                    <div class="feature-text">及时通知</div>
                </div>
                <div class="feature-item">
                    <div class="feature-icon">⚡</div>
                    <div class="feature-text">快速响应</div>
                </div>
            </div>
            <div class="copyright">
                © 2024 GoPayHK • 安全全球支付
            </div>
        </div>
    </div>
</body>
</html> 